import request from '@/utils/request'

// 查询标准化考核--项目得分列表
export function listInspectionItem(query) {
  return request({
    url: '/workSafetyStandardization/InspectionItem/list',
    method: 'get',
    params: query
  })
}

// 查询标准化考核--项目得分详细
export function getInspectionItem(itemResultId) {
  return request({
    url: '/workSafetyStandardization/InspectionItem/' + itemResultId,
    method: 'get'
  })
}

// 新增标准化考核--项目得分
export function addInspectionItem(data) {
  return request({
    url: '/workSafetyStandardization/InspectionItem',
    method: 'post',
    data: data
  })
}

// 修改标准化考核--项目得分
export function updateInspectionItem(data) {
  return request({
    url: '/workSafetyStandardization/InspectionItem',
    method: 'put',
    data: data
  })
}

// 删除标准化考核--项目得分
export function delInspectionItem(itemResultId) {
  return request({
    url: '/workSafetyStandardization/InspectionItem/' + itemResultId,
    method: 'delete'
  })
}
